<%= render :partial => "admin/menu" %>

<div class="listing">
  <h1>Listing outputs</h1>
  <table>
    <tr>
      <th>Name</th>
      <th>File name</th>
    </tr>

    <% @outputs.each do |output| %>
      <tr>
        <td><%=h output.name %></td>
        <td><%=h output.code_file_name %></td>
        <td><%= link_to 'Edit', edit_output_path(output) %></td>
        <td><%= link_to 'Destroy', output, :confirm => 'Are you sure?', :method => :delete %></td>
      </tr>
    <% end %>
  </table>

  <br />

</div>